package com.sxhuayuan.parking.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sxhuayuan.parking.config.Platform;
import com.sxhuayuan.parking.dao.BaseDao;
import com.sxhuayuan.parking.dao.PartnerpayDao;
import com.sxhuayuan.parking.entity.Member;
import com.sxhuayuan.parking.entity.Partnerpay;
import com.sxhuayuan.parking.service.PartnerpayService;

@Service("partnerpayServiceImpl")
public class PartnerpayServiceImpl extends BaseServiceImpl<Partnerpay, Long> implements PartnerpayService {

	@Resource
	PartnerpayDao dao;

	@Override
	public BaseDao<Partnerpay, Long> getDAO() {
		return dao;
	}

	@Override
	public List<Partnerpay> findList(Member member) {
		return dao.findByMember(member);
	}

	@Override
	public List<Partnerpay> findListByCarPlate(String carPlate) {
		return dao.findByCarPlate(carPlate);
	}

	@Override
	public Partnerpay findByCarPlateAndPlatform(String carPlate, Platform platform) {
		return dao.findByCarPlateAndPlatform(carPlate, platform);
	}

}
